package club.xyes.zkh.ecommerce.service.listener;

import club.xyes.zkh.ecommerce.commons.entity.*;

/**
 * Create by 郭文梁 2019/5/6 0006 16:23
 * OnUserMembershipLevelChangedListener
 * 用户会员等级变化监听器
 *
 * @author 郭文梁
 * @data 2019/5/6 0006
 */
public interface OnUserMembershipLevelChangedListener {
    /**
     * 用户会员等级发生变化时调用
     *
     * @param membership     会员对象
     * @param user           用户
     * @param userMembership 用户会员信息
     * @param level          会员等级信息
     * @param shop           商铺
     */
    void onChanged(UserMembership userMembership, User user, Shop shop, ShopMembershipLevel level, ShopMembership membership);
}
